<template>
  <div class="cart">
    <!--头部区域-->
    <header class="titleWrapper">
      <h4>
        <strong>{{ $t("car.title") }}</strong>
      </h4>
      <div
        class="clearCart"
        :style="selectedGoodsCount == 0 ? 'color:grey' : 'color:#45c763'"
        @click="clearCart"
        v-show="isShowEmptyCart"
      >
        {{ $t("car.delete") }}
      </div>
    </header>
  </div>
</template>

<script>
export default {
  props: {},
  data() {
    return {
      youLike_product_lists: [],
      isShowLoading: false,
      isEmptyCart: false,
    };
  },
  computed: {
    // 1.是否显示空购物车样式
    isShowEmptyCart() {
      let isshow = false;
      if (this.totalCount > 0) {
        isshow = true;
      }
      return isshow;
    },
  },
  created() {},
  mounted() {},
  watch: {},
  methods: {},
  components: {},
};
</script>

<style lang="less" scoped>
</style>
